package com.teamsapp.article.dto;

import lombok.Data;
import java.util.List;

@Data
public class PageResponse<T> {
    private List<T> records;
    private long total;
    private int page;
    private int pageSize;
    
    public PageResponse(List<T> records, long total, int page, int pageSize) {
        this.records = records;
        this.total = total;
        this.page = page;
        this.pageSize = pageSize;
    }
}
